// 在 com.xjaq.dify.entity 包下创建 MessageHistory.java
package com.xjaq.dify.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;
import java.util.Map;

@Data
@ApiModel("消息历史")
public class MessageHistory {
    
    @ApiModelProperty("消息ID")
    private String id;
    
    @ApiModelProperty("会话ID")
    private String conversationId;
    
    @ApiModelProperty("用户输入参数")
    private Map<String, Object> inputs;
    
    @ApiModelProperty("用户输入/提问内容")
    private String query;
    
    @ApiModelProperty("回答消息内容")
    private String answer;
    
    @ApiModelProperty("消息文件")
    private List<MessageFile> messageFiles;
    
    @ApiModelProperty("反馈信息")
    private FeedbackInfo feedback;
    
    @ApiModelProperty("引用和归属分段列表")
    private List<RetrieverResource> retrieverResources;
    
    @ApiModelProperty("创建时间")
    private Long createdAt;
}
